package com.ruoyi.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * address对象 address
 * 
 * @author ruoyi
 * @date 2025-06-08
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址编号 */
    private Long addressid;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userid;

    /** 姓名 */
    @Excel(name = "姓名")
    private String receivename;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    private String receiveaddress;

    /** 状态 */
    @Excel(name = "状态")
    private Long defaultstate;

    public void setAddressid(Long addressid) 
    {
        this.addressid = addressid;
    }

    public Long getAddressid() 
    {
        return addressid;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setReceivename(String receivename) 
    {
        this.receivename = receivename;
    }

    public String getReceivename() 
    {
        return receivename;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setReceiveaddress(String receiveaddress) 
    {
        this.receiveaddress = receiveaddress;
    }

    public String getReceiveaddress() 
    {
        return receiveaddress;
    }
    public void setDefaultstate(Long defaultstate) 
    {
        this.defaultstate = defaultstate;
    }

    public Long getDefaultstate() 
    {
        return defaultstate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressid", getAddressid())
            .append("userid", getUserid())
            .append("receivename", getReceivename())
            .append("phone", getPhone())
            .append("receiveaddress", getReceiveaddress())
            .append("defaultstate", getDefaultstate())
            .toString();
    }
}
